{include file="public/tabs_head" /}
<div class="wrapper wrapper-content animated fadeInRight">

        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>填写信息[{if !empty($info)}{$info.no}{/if}] <small>请如实填写项目信息</small></h5>
                    </div>
                    <div class="ibox-content">
                        <form method="post" class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">项目标题(title)</label>
    <div class="layui-input-inline" style="width:100px;">
      <select name="type" class="item_type">
        <option value="1"{if !empty($info)}{if $info.type == 1}selected="true"{/if}{/if}>项目</option>
        <option value="2"{if !empty($info)}{if $info.type == 2}selected="true"{/if}{/if}>全员</option>
        <option value="3"{if !empty($info)}{if $info.type == 3}selected="true"{/if}{/if}>其他</option>
      </select>
    </div>
    <div class="layui-input-inline"style="width:300px;">
        <input type="text" name="title" lay-verify="title" autocomplete="off" placeholder="请输入任务标题" class="layui-input" value="{if !empty($info)}{$info.title}{/if}" >
    </div>
                            </div>




                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">项目描述(description)</label>
                                <div class="col-sm-10">
                                <textarea class="layui-textarea" id="LAY_demo1" style="display: none" name="description">  
                                {if !empty($info)}{$info.description}{/if}
                                </textarea>
                            </div>
                            

                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn layui-btn" type="submit">保存内容</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script>
layui.use('layedit', function(){
  var layedit = layui.layedit
  ,$ = layui.jquery;
  
  //构建一个默认的编辑器
  var index = layedit.build('LAY_demo1',{
        height: 140 //设置编辑器高度
        ,uploadImage: {
            url:'{:url('upload/uploadimage')}'
            ,type: 'post'
        }
    });
});
</script>
{include file="public/tabs_footer" /}